<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<form action="salvaCargo" method="POST">
  <input type="hidden" name="codigo" id="codigo" value="${cargo.codigo}">
  <table>
  <tr>
    <td>Nome:</td>
    <td><input type="text" name="nome" size="30" value="${cargo.nome}"></td>
  </tr>
  <tr>
    <td colspan="2">
      <input type="submit" name="salvar" value="Salvar">
      <input type="button" name="cancelar" value="Cancelar" onclick="history.back();">
      <c:if test="${!empty cargo.codigo}">
        <input type="submit" name="remover" value="Remover">
      </c:if>
      </td>
  </tr>
</table>
</form>
